require "pubenum"
require "cardvalue"

--桌子的状态
ETableState = {
	TABLE_STATE_WAIT_MIN_PLAYER = 1,        --等待最小玩家数
	TABLE_STATE_GAME_START = 2,        		--等待桌主开始游戏
	TABLE_STATE_WAIT_CLIENT_ACTION = 3,     --等待client操作
	TABLE_STATE_ACTION = 4,					--操作中
	TABLE_STATE_GAME_END = 5,  	    		--游戏结束
}

--座位状态
ESeatState = {
	SEAT_STATE_NO_PLAYER = 1,  		--没有玩家
	SEAT_STATE_WAIT_START = 2, 		--等待开局
	SEAT_STATE_PLAYING  = 3,   		--正在游戏中
	SEAT_STATE_CALL = 4,       		--跟注
	SEAT_STATE_RAISE = 5,			--加注
	SEAT_STATE_FOLD = 6,       		--弃牌
	SEAT_STATE_WATCHING = 7, 		--中途进入的直接观战
	SEAT_STATE_COMPARE_FAIL = 8, 	--比牌输
	SEAT_STATE_WAIT_READY = 9,		--等待玩家准备
}

--玩家操作类型
EActionType = {
	ACTION_TYPE_CALL = 1,			--跟注
	ACTION_TYPE_RAISE = 2,			--加注
	ACTION_TYPE_COMPARE = 3,		--比牌
	ACTION_TYPE_SEECARDS = 4,		--看牌
	ACTION_TYPE_FOLD = 5,			--弃牌
}

--房间类型
ERoomType = {
	ROOM_TYPE_DIAMOND = 1, 		--钻石桌
	ROOM_TYPE_ZJ_FRIEND = 2,	--自建朋友桌
	ROOM_TYPE_COIN = 3,			--金币桌
	ROOM_TYPE_ZJ_DIAMOND = 4,	--自建钻石桌
}

--游戏类型 1 普通，2 激情，3 普通桌必闷三圈，4 激情桌必闷三圈
EGameType = {
	GAME_TYPE_COMMON = 1,
	GAME_TYPE_PASSION = 2,
	GAME_TYPE_COMMON3 = 3,
	GAME_TYPE_PASSION3 = 4,
}

--匹配场类型
EMatchType ={
    MATCH_TYPE_PRIMARY = 1,     --初级场
    MATCH_TYPE_MEDIUM = 2,      --中级场
    MATCH_TYPE_ADVANCE = 3,     --高级场
}

--奖池跑马灯提示颜色
PSZLAMPCOLOR = {
    ORANGE = "<color=#00ff00>%s</c>",
    RED = "<color=#ff0000>%s</c>",
    YELLOW = "<color=#ffff00>%s</c>",
    BLUE = "<color=#0000ff>%s</c>",
    GOLD = "<color=#ffd700>%s</c>",
    GREEN = "<color=#008b00>%s</c>",
}

--游戏名
EGameName = "psz"

--牌型名
PSZCardTypeName = {
    [CardType.UNDEFINE] = "高牌",
    [CardType.DUI_ZI] = "对子",
    [CardType.SHUN_ZI] = "顺子",
    [CardType.TONG_HUA] = "同花",
    [CardType.TONG_HUA_SHUN] = "同花顺",
    [CardType.BAO_ZI] = "三条",
    [CardType.BAO_ZI+1] = "三条",
}